﻿using movie.tool.library.binding;

namespace movie.tool.module.film.model
{
    public class PlayRoleBookConfig : NotifyPropertyChanged
    {
        private long id;
        public long Id
        {
            get => id;
            set
            {
                id = value;
                SendPropertyChanged(nameof(Id));
            }
        }
        private long playRoleId;
        /// <summary>
        /// 角色id
        /// </summary>
        public long PlayRoleId
        {
            get => playRoleId;
            set
            {
                playRoleId = value;
                SendPropertyChanged(nameof(PlayRoleId));
            }
        }
        /// <summary>
        /// 角色名称。如果角色暂时未保存到云端,则id还未赋值,此时只能通过名称关联
        /// </summary>
        public string RoleName { get; set; }
        private long chapterId;
        public long ChapterId
        {
            get => chapterId;
            set
            {
                chapterId = value;
                SendPropertyChanged(nameof(ChapterId));
            }
        }
        private string name;
        /// <summary>
        /// 章节名称.显示使用
        /// </summary>
        public string Name
        {
            get => name;
            set
            {
                name = value;
                SendPropertyChanged(nameof(Name));
            }
        }
        private string filePath;
        /// <summary>
        /// 电子书文件的存储路径，相对剧本根路径
        /// </summary>
        public string FilePath
        {
            get => filePath;
            set
            {
                filePath = value;
                SendPropertyChanged(nameof(FilePath));
            }
        }
    }
}
